import Mock from 'mockjs'


const data = Mock.mock({
	'tabs|5': [{
		'title|+1': ['推荐', '电视', '家电', '数码', '手机'],
		'id': '@id',
		'children|10-20': [{
			'title': '@ctitle',
			'urls|3-6': ['@image(100x100, @color)'],
			'desc': '@cword(50,100)',
			'price|800-20000': 1,
			'id': '@id',
		}]

	}]
})


Mock.mock('/api/tabs', () => ({ code: 200, data: data.tabs }))